package com.thp.springBootDemo;

import java.util.Map;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * 消息消费者
 * @author lenovo
 *
 */
@Component
public class QueueConsumer {
	
	@JmsListener(destination="dashabi")
	public void readMessage(String text) {
		System.out.println("接收到的消息:" + text);
	}
	
	
	// 接受map
	@JmsListener(destination="dashabi_map")
	public void readMap(Map map) {
		System.out.println(map);
	}
	
	
	
}
